Skip to main content
Version: Mosquitto 2.9

Overview

Mosquitto - an MQTT broker

Mosquitto is an open-source lightweight message broker to enable communication between sensors, smartphones, web apps, and other devices within an IoT architecture. Pro Edition for Mosquitto MQTT broker is a more powerful and fully supported version of Mosquitto tailored for commercial use, offering complete compliance with MQTT versions 3 and 5.

In this documentation a lot of basic configuration and underlying principles are described. Most of this knowledge is not needed while using the Mosquitto UI called Mosquitto Management Center.

Configuration

The broker can be configured using a configuration file as described in configuration

Basic Monitoring

System topics keep track of system relevant monitoring parameter. See here a full list.

Files

Files which are being used by the broker:

  • mosquitto.conf

Configuration file. See Mosquitto Configuration for more information.

  • mosquitto.db

Persistent message data storage location if persist enabled. autosave_interval secondssets the number of seconds that mosquitto will wait between each time it saves the in-memory database to disk. If set to 0, the in-memory database will only be saved when mosquitto exits or when receiving the SIGUSR1 signal. Note that this setting only has an effect if persistence is enabled. Defaults to 1800 seconds (30 minutes). This option applies globally. Reloaded on reload signal.

  • dynamic-security.json

Persists the current dynamic security configuration to disk.

  • streams.json

Persists the current streams configuration to disk.

  • license.lic

License file for Pro Mosquitto features from Cedalo Gmbh.

Platform limitations

Some versions of Windows have limitations on the number of concurrent connections due to the Windows API being used. In modern versions of Windows, e.g. Windows 10 or Windows Server 2019, this is approximately 8192 connections. In earlier versions of Windows, this limit is 2048 connections.

MQTT Compliance

The Mosquitto MQTT is MQTT compliant:

v.3.1

MQTT Version 3.1: https://public.dhe.ibm.com/software/dw/webservices/ws-mqtt/mqtt-v3r1.html

v.3.1.1

MQTT Version 3.1.1: http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html

v.5.0

The MQTT version 5.0 is the next development step in the evolution of MQTT. Learn about the Eclipse Foundation. Major bugs have been erased. For example in many cases errors led to disconnecting the client from the broker. With v.5.0 negative acknowledgements help to work out ways to solve the problem.